operator (-) Interface

public interface operator (-)

Calls

interface~~operator (-)~~CallsGraph interface~operator (-) operator (-) proc~torch_tensor_negative torch_tensor_negative interface~operator (-)->proc~torch_tensor_negative proc~torch_tensor_subtract torch_tensor_subtract interface~operator (-)->proc~torch_tensor_subtract proc~torch_tensor_empty torch_tensor_empty proc~torch_tensor_negative->proc~torch_tensor_empty proc~torch_tensor_get_device_index torch_tensor%torch_tensor_get_device_index proc~torch_tensor_negative->proc~torch_tensor_get_device_index proc~torch_tensor_get_device_type torch_tensor%torch_tensor_get_device_type proc~torch_tensor_negative->proc~torch_tensor_get_device_type proc~torch_tensor_get_dtype torch_tensor%torch_tensor_get_dtype proc~torch_tensor_negative->proc~torch_tensor_get_dtype proc~torch_tensor_get_rank torch_tensor%torch_tensor_get_rank proc~torch_tensor_negative->proc~torch_tensor_get_rank proc~torch_tensor_get_shape torch_tensor%torch_tensor_get_shape proc~torch_tensor_negative->proc~torch_tensor_get_shape proc~torch_tensor_requires_grad torch_tensor%torch_tensor_requires_grad proc~torch_tensor_negative->proc~torch_tensor_requires_grad proc~torch_tensor_subtract->proc~torch_tensor_empty proc~torch_tensor_subtract->proc~torch_tensor_get_device_index proc~torch_tensor_subtract->proc~torch_tensor_get_device_type proc~torch_tensor_subtract->proc~torch_tensor_get_dtype proc~torch_tensor_subtract->proc~torch_tensor_get_rank proc~torch_tensor_subtract->proc~torch_tensor_get_shape proc~torch_tensor_subtract->proc~torch_tensor_requires_grad proc~torch_tensor_get_shape->proc~torch_tensor_get_rank

Module Procedures

public function torch_tensor_negative(tensor) result(output)

Overloads negative operator for a single tensor.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor

Tensor to take the negative of

Return Value type(torch_tensor)

Tensor to hold the negative values

public function torch_tensor_subtract(tensor1, tensor2) result(output)

Overloads subtraction operator for two tensors.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(in) :: tensor1

First tensor for the subtraction

type(torch_tensor), intent(in) :: tensor2

Second tensor for the subtraction

Return Value type(torch_tensor)

Tensor to hold the difference